package com.library.service;

import com.library.entity.User;
import com.library.exception.LoginErrorException;
import com.library.exception.UserRepeatException;

/**
 * Created by linzhi on 2016/12/12.
 */
public interface IUserService extends IBaseService<User> {
    /**
     * 保存用户（注册）
     * @param user
     */
    public void register(User user) throws UserRepeatException;
    /**
     * 登陆
     * @param user
     * @return 登录用户的信息
     */
    public User login(User user) throws LoginErrorException;

}
